package cn.itcast.h_jdbc2;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;


import javax.annotation.Resource;

/**
 * Created by 13687 on 2017/2/26.
 */
@Component
public class UserDao {

	@Resource(name = "jdbcTemp")
	private JdbcTemplate jdbcTemplate;

	public void save(){
		String sql =  "INSERT INTO t_user(userName,userId) VALUES ('liu',13)";
		jdbcTemplate.execute(sql);
	}
}
